<!doctype html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/component/common.jsp" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta http-equiv ="proma" content = "no-cache"/>
    <meta http-equiv="cache-control" content="no cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>医卫士云平台</title>
    <link rel="stylesheet" href="${frames}/css/lib/bootstrap.min.css" type="text/css">
    <link rel="stylesheet" href="${newframe}/css/base/base.css">
    <link rel="stylesheet" href="${newframe}/css/index/index.css">
    <style>
    	.modal-dialog{
    		margin:30px auto;
    	}
        .btn-myStyle{
            color:#fff;
            background: #35c990;
        }
        .btn-myStyle:hover,.btn-myStyle:active{
            color:#fff;
            background: #35c990;
        }
        .modal-header{
            border:none;
        }
        .loginmsg:hover{
            background:#35acfd !important
        }
        .loginmsg{
            background:#35acfd !important
        }
    </style>
    <script type="text/javascript" src="${newframe}/js/jquery-1.9.1.min.js"></script>
    <%-- <script src="${newframe}/js/index.js"></script> --%>
    <script src="${frames}/js/lib/bootstrap.min.js"></script>
    <script src="${newframe}/js/modalOption.js"></script>
    <script type="text/javascript">
    function reinitIframe(){
        var iframe = document.getElementById("testIframe");
        try{
            iframe.height = 0;
            iframe.height =  iframe.contentWindow.document.documentElement.scrollHeight;
            if(iframe.height < 874){

                iframe.height = 874 + 'px';

                $('#slidebar').height(iframe.height);

            }

            $('#slidebar').height(iframe.height+'px');

        }catch (ex){}
    }
    window.setInterval("reinitIframe()", 200);
    function userCenter(){
        parent.showSrc('${URL_USER_TOUSERINFO}')
    }
    </script>
</head>
<body>
<div id="main">
    <div id="header">
        <div class="bg">
            <h1 class="logo">
                <img src="${newframe}/images/slidebar/logo.png">
            </h1>
            <div class="loginmsg">
                <div class="personalcenter">
                    <i><img src="${newframe}/images/slidebar/hd_portrait.png"></i>
                    <span>个人中心</span>
                    <b><img src="${newframe}/images/slidebar/pullMenu.png"></b>
                </div>
                <ul class="personmsg">
                    <li class="personal">
						<span>
							<img src="${newframe}/images/slidebar/center_per.png" >
						</span>
                        <span style="line-height:45px;display:inline-block" onclick="userCenter()">个人信息</span>
                    </li>
                    <li class="exit">
						<span>
							<img src="${newframe}/images/slidebar/exit.png" height="19" width="19" alt="">
						</span>
                        <a href="${URL_LOGOUT}">退出</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div id="wrapper">
        <%@include file="/WEB-INF/jsp/admin/main_menu.jsp" %>
        <div class="right">
            <iframe id="testIframe" src='${URL_LAYOUT}' frameborder="0" scrolling="no">
            </iframe>
        </div>
    </div>
</div>
<!-- 公共弹出框 start  -->
<div class="modal fade bs-example-modal-lg" id="myModalIframe" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content" style="height:600px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> &times; </button>
                <h4 class="modal-title"></h4>
            </div>
            <div class="modal-body">
            </div>
        </div>
    </div>
</div>
<!-- 公共弹出框 end -->
<!-- 公共弹出框 新增  -->
<div class="modal fade bs-example-modal-lg" id="ModalIframe" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document" style="top:120px;">
        <div class="modal-content" style="height:600px;">
            <div class="modal-body">
            </div>
        </div>
    </div>
</div>
<!-- 公共弹出框 end -->
<%--取消关联模态框--%>
<div class="modal fade" id="cancelModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-body">
                取消该科室的关联，系统会取消该科室下医生与医院的关联
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default sure" data-dismiss="modal">确认</button>
                <button type="button" class="btn btn-primary cancel" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<script>
$(function () {
	  $('.loginmsg').mouseenter(function(){
	      $(this).css('backgroundColor','#35acfd');
	      $('.personmsg').css('display','block');
	      $('.personalcenter').children('b').children('img').attr('src','${newframe}/images/slidebar/topMenu.png');
	  }).mouseleave(function(){
	      $('.personmsg').css('display','none');
	      $('.personalcenter').children('b').children('img').attr('src','${newframe}/images/slidebar/pullMenu.png');
	  });
});
function showSrc(srcId){
	$("#testIframe").attr('src',srcId);
}
</script>
</body>
</html>